package com.cxyxj.pcd.annon;

import com.cxyxj.pcd.annon.aa.a;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AppTest {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppMain.class);
        UserController bean = context.getBean(UserController.class);

        bean.addUser("s");
        bean.queryUser("5");
        a bean2 = context.getBean(a.class);
        bean2.a("xx");
    }
}
